package com.deer.wms.base.system.service.box.impl;

import com.deer.wms.base.system.dao.box.AreaBoxItemMapper;
import com.deer.wms.base.system.model.box.AreaBoxItem;
import com.deer.wms.base.system.model.box.AreaBoxItemDto;
import com.deer.wms.base.system.service.box.AreaBoxItemService;
import com.deer.wms.common.core.service.AbstractService;
import com.deer.wms.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class AreaBoxItemServiceImpl extends AbstractService<AreaBoxItem, Integer> implements AreaBoxItemService {
    @Autowired
    private AreaBoxItemMapper areaBoxItemMapper;
    @Override
    public AreaBoxItem findAreaBoxItemById(Integer id) {
        return areaBoxItemMapper.findAreaBoxItemById(id);
    }

    @Override
    public List<AreaBoxItemDto> findAreaBoxItemList(AreaBoxItemDto areaBoxItemDto) {
        return areaBoxItemMapper.findAreaBoxItemList(areaBoxItemDto);
    }

    @Override
    public int delectAreaBoxItembyId(Integer id) {
        return areaBoxItemMapper.delectAreaBoxItembyId(id);

    }

    @Override
    public int delectAreaBoxItemByIds(String ids) {
        return areaBoxItemMapper.delectAreaBoxItemByIds(Convert.toStrArray(ids));

    }

    @Override
    public int editAreaBoxItem(AreaBoxItem areaBoxItem) {
        return areaBoxItemMapper.editAreaBoxItem(areaBoxItem);

    }

    @Override
    public int saveAreaBoxItem(AreaBoxItem areaBoxItem) {
        return areaBoxItemMapper.saveAreaBoxItem(areaBoxItem);
    }

    @Override
    public List<AreaBoxItemDto> findListItem() {
        return areaBoxItemMapper.findListItem();
    }
}
